﻿@model System.Web.Mvc.HandleErrorInfo
@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="fr">
<head>
    <title>[FrTr] TeamFranceTriple - @CloudFranceTriple.WebRole.Properties.Resources.GlobalErrorError</title>
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta name="viewport" content="width=device-width" />
    <meta name="google-site-verification" content="ggj29w46anNsS4VIRhsvhcEfRZSJOzDfx0A8n0vzImw" />
    <meta charset="utf-8" />
    <meta name="RATING" content="GENERAL" />
    <meta name="ROBOTS" content="INDEX, FOLLOW" />
    <meta name="REVISIT-AFTER" content="1 DAYS" />
    <meta name="AUTHOR" content="Francois Rossello" />
    <meta name="DESCRIPTION" content="Fondée été 2006, la Team France Triple est un groupe de joueurs français de la série Battlefield d'Electronics Arts, mais aussi d'autres jeux comme World of Tank ou PlanetSide 2." />
    <meta name="KEYWORDS" content="&quot;Team France Triple&quot;,[FrTr],-FrTrpl-,Battlefield 3,Dice,Electronics Art,Fun Fair-play,No Cheat,&quot;Video Game Community Portal&quot;" />
    <meta name="GENERATOR" content="Microsoft Visual Studio Web Developer 2012 Express - MVC4 - Razor - Linq to Entities - SQL Azure" />
    @if (Request.Browser.IsMobileDevice || Request.ServerVariables["HTTP_USER_AGENT"].ToString().ToLower().Contains("midori"))
    {
        <style>
            html {
                background-color: #111111;
                margin: 0;
                padding: 0;
            }
        </style>
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/jquery/mobile")
        @Scripts.Render("~/bundles/jqueryui/mobile")
        @Styles.Render("~/Content/themes/mobile")
    }
    else
    {
        <style>
            html {
                background-image: url(http://img812.imageshack.us/img812/6849/fqb6.jpg);
                background-repeat: round;
                background-attachment: fixed;
                margin: 0;
                padding: 0;
            }
        </style>
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/jquery")
        @Scripts.Render("~/bundles/jqueryui")
        @Styles.Render("~/Content/themes")
    }
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>
    <header>
        <div class="header-wrapper">
            <div class="float-right">
                <section></section>
            </div>
            <div style="clear: both;"></div>
            <img id="Banner_FrTrpl" src="#" alt="Team France Triple 's Banner" style="border-radius: 8px;" />
            @Html.Action("ShowOnHeader", "Annonce", new { area = "Forum" })
            <nav>
                <ul id="menu-image">
                    <li><a href="/home/index">
                        <canvas id="MenuPortal" width="100" height="70"></canvas>
                    </a></li>
                    <li><a href="/forum/forum/index">
                        <canvas id="MenuForum" width="100" height="70"></canvas>
                    </a></li>
                    <li><a href="/Gaming/Event">
                        <canvas id="MenuEvent" width="100" height="70"></canvas>
                    </a></li>
                    <li><a href="/Gaming/LaBaff">
                        <canvas id="MenuLaBaff" width="100" height="70"></canvas>
                    </a></li>
                    <li><a href="/Gaming/Game">
                        <canvas id="MenuGame" width="100" height="70"></canvas>
                    </a></li>
                    <li><a href="/Gaming/Player">
                        <canvas id="MenuPlayer" width="100" height="70"></canvas>
                    </a></li>

                    <li><a href="/portail/news">
                        <canvas id="MenuNews" width="100" height="70"></canvas>
                    </a></li>

                    <li><a href="/home/about">
                        <canvas id="MenuAbout" width="100" height="70"></canvas>
                    </a></li>

                </ul>
                <noscript>
                    <ul id="menu" style="border-radius: 8px;">
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuPortal, "Index", "Home", new { area = "" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuForum, "Index", "Forum", new { area = "forum" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuEvent, "Index", "Event", new { area = "Gaming" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuLaBaff, "Index", "LaBaff", new { area = "gaming" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuGame, "Index", "Game", new { area = "gaming" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuPlayer, "Index", "Player", new { area = "gaming" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuNews, "Index", "News", new { area = "Portail" }, null)</li>
                        <li>@Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.MenuAbout, "About", "Home", new { area = "" }, null)</li>
                    </ul>
                </noscript>
            </nav>
        </div>
    </header>
    <div id="body">
        <div class="content-padding">
            <h1 class="error">@CloudFranceTriple.WebRole.Properties.Resources.GlobalErrorError</h1>
            <h2 class="error">@CloudFranceTriple.WebRole.Properties.Resources.GlobalErrorHappend</h2>
            <p>
                Controller: @Model.ControllerName
                <br />
                <br />
                Action: @Model.ActionName
                <br />
                <br />
                Message: 
                <br />
                <br />
                @Model.Exception.Message
                <br />
                <br />
                Exception: 
                <br />
                <br />
                @Model.Exception
                <br />
                <br />
            </p>
        </div>
    </div>
    <footer>
        <div class="content-wrapper">
            <table style="width: 100%;">
                <tbody>
                    <tr>
                        <td style="text-align: left;">
                            @*Faire un don vers Nitroserv*@
                            <span>
                                <a href="http://2k12.nitroserv.com/dons/68503-france-triple" target="_blank">
                                    <img title="Faire un don pour France Triple" src="http://static.nitroserv.com/img/don_160x80.png" alt="Faire un don pour France Triple" style="padding: 4px; border-radius: 8px;" /></a>
                            </span>
                        </td>
                        <td style="text-align: right;">
                            @*Remerciements aux auteurs*@
                            <span>Site Cloud hébergé sur <a target="_blank" href="http://www.windowsazure.com/">WindowsAzure.com</a> co-réalisés en 2013 par
                            <br />
                                <a href="mailto:captainmagic@msn.com">CaptainMagicAA</a> (Architecte - Développeur), Eternity57(Définitions des besoins)
                            <br />
                                NHawks() Maitmuta(Image du menu)                
                            <br />
                                Vidéos de la Team Supreme258 puis Eternity57
                            <br />
                                Bannière du Site Pigprodz, Bannière du Platoon Team France Triple DriiDrii74
                            <br />
                                Bannière de la Battlefield Alliance For Fun LangeDiabolik.
                            <br />
                                &copy; @DateTime.Now.Year - Team France Triple&nbsp;&nbsp;
                            </span>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </footer>
    <script type="text/javascript">
        function loadBanner() {
            var banner = document.getElementById("Banner_FrTrpl");
            banner.src = "http://img21.imageshack.us/img21/4197/bya8.jpg";
        }
        function loadMenuImage(elt, text) {
            var thisCanvas = document.getElementById(elt);
            if (thisCanvas == null) return;

            var canvas = document.getElementById(elt), ctx = canvas.getContext('2d');
            var img = new Image();
            img.src = '/Images/Menubullet.png';
            img.alt = text;
            img.title = text;

            img.onload = function () {
                ctx.font = 'bold 14pt Arial';
                ctx.drawImage(img, 2, 2, 100, 70);
                ctx.rotate(Math.PI * -2 / 12);

                ctx.textAlign = 'center';
                ctx.textBaseline = 'middle';

                ctx.strokeStyle = '#111111';
                ctx.lineWidth = 4;
                ctx.strokeText(text, 24, 56);

                if (elt == 'MenuPrivateMessage' && text != '@String.Format("{0} ({1})", CloudFranceTriple.WebRole.Properties.Resources.PrivateMessageToRead, "0")')
                    ctx.fillStyle = '#ee0000';
                else
                    ctx.fillStyle = '#00a100';

                ctx.lineWidth = 1;
                ctx.fillText(text, 24, 56);
            }

        }
        loadBanner();
        loadMenuImage('MenuPortal', '@CloudFranceTriple.WebRole.Properties.Resources.MenuPortal');
        loadMenuImage('MenuForum', '@CloudFranceTriple.WebRole.Properties.Resources.MenuForum');
        loadMenuImage('MenuEvent', '@CloudFranceTriple.WebRole.Properties.Resources.MenuEvent');
        loadMenuImage('MenuLaBaff', '@CloudFranceTriple.WebRole.Properties.Resources.MenuLaBaff');
        loadMenuImage('MenuGame', '@CloudFranceTriple.WebRole.Properties.Resources.MenuGame');
        loadMenuImage('MenuPlayer', '@CloudFranceTriple.WebRole.Properties.Resources.MenuPlayer');
        loadMenuImage('MenuPrivateMessage', '@Html.Action("MsgToRead", "PrivateMessage", new { area = "Forum" })');
        loadMenuImage('MenuAnnoncement', '@CloudFranceTriple.WebRole.Properties.Resources.MenuAnnoncement');
        loadMenuImage('MenuUserManager', '@CloudFranceTriple.WebRole.Properties.Resources.MenuUserManager');
        loadMenuImage('MenuAccountingEntry', '@CloudFranceTriple.WebRole.Properties.Resources.MenuAccountingEntry');
        loadMenuImage('MenuNews', '@CloudFranceTriple.WebRole.Properties.Resources.MenuNews');
        loadMenuImage('MenuAbout', '@CloudFranceTriple.WebRole.Properties.Resources.MenuAbout');
        loadMenuImage('MenuContact', '@CloudFranceTriple.WebRole.Properties.Resources.MenuContact');
    </script>
</body>
</html>
